package com.woniuxy.ticketauth.shiro;

import org.apache.shiro.authc.AuthenticationToken;

/**
 * 自定义Token，用于封装JWT
 *
 * @author 蜗牛学院 (<a href="http://www.woniuxy.com">蜗牛学院</a>)
 */
public class JwtToken implements AuthenticationToken {
    private String jwt;

    public JwtToken(String jwt) {
        this.jwt = jwt;
    }

    @Override
    public Object getPrincipal() {
        return jwt;
    }

    @Override
    public Object getCredentials() {
        return jwt;
    }
}
